package cn.sourcespro.spring.dao;

import cn.sourcespro.spring.crudparams.PageInfo;
import cn.sourcespro.spring.entity.MenuRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜单权限 Mapper
 *
 * @author 张浩伟
 * @date 2018/07/27
 */
@Mapper
public interface MenuRoleMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(MenuRole record);

    MenuRole selectByPrimaryKey(Integer id);

    List<MenuRole> selectAll(PageInfo pageInfo);

    int batchInsert(List<MenuRole> list);

    List<MenuRole> batchQueryByIds(List<Integer> ids);

    List<MenuRole> batchQueryByUuids(List<String> uuids);

    int updateByPrimaryKey(MenuRole record);

    MenuRole findByUuid(String uuid);

    int selectCount(PageInfo pageInfo);

    int batchDeleteById(List<Integer> ids);

    int batchDeleteByUuid(List<String> uuids);

    int deleteByUuid(String uuid);
}